package com.yxw.yxnet_cd_center.customer_service.dto;



import com.yxw.yxnet_cd_center.customer_service.entity.YxcscMqttServersClientEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import java.io.Serializable;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
//import lombok.EqualsAndHashCode;



@Data
//@EqualsAndHashCode(callSuper = true)
public class YxcscMqttServersClientDTO   implements Serializable
{
    private static final long serialVersionUID = 81695374396776L;
    /**
    *主键Id
    */
    @NotNull(message = "主键Id不可为空")
    @ApiModelProperty(value = "主键Id")
    private Integer Id;
    /**
    *渠道编码
    */
    @ApiModelProperty(value = "渠道编码")
    private String channelCode;
    /**
    *服务器域名或IP
    */
    @ApiModelProperty(value = "服务器域名或IP")
    private String host;
    /**
    *用户名
    */
    @ApiModelProperty(value = "用户名")
    private String user;
    /**
    *密码
    */
    @ApiModelProperty(value = "密码")
    private String pwd;
    /**
    *客户端Id
    */
    @ApiModelProperty(value = "客户端Id")
    private String clientid;
    /**
    *监听类型
    */
    @ApiModelProperty(value = "监听类型")
    private String type;
    /**
    *监听端口
    */
    @ApiModelProperty(value = "监听端口")
    private Integer port;
    /**
    *创建时间
    */
    @ApiModelProperty(value = "创建时间")
    private java.util.Date createTime;
    /**
    *将DTO转换为ENTITY
    */
    public YxcscMqttServersClientEntity ConverToEntity()
    {
        YxcscMqttServersClientEntity oYxcscMqttServersClientEntity = new YxcscMqttServersClientEntity ();
        oYxcscMqttServersClientEntity.setId(Id) ;
        oYxcscMqttServersClientEntity.setChannelCode(channelCode) ;
        oYxcscMqttServersClientEntity.setHost(host) ;
        oYxcscMqttServersClientEntity.setUser(user) ;
        oYxcscMqttServersClientEntity.setPwd(pwd) ;
        oYxcscMqttServersClientEntity.setClientid(clientid) ;
        oYxcscMqttServersClientEntity.setType(type) ;
        oYxcscMqttServersClientEntity.setPort(port) ;
        oYxcscMqttServersClientEntity.setCreateTime(createTime) ;
        return oYxcscMqttServersClientEntity;
    }
}

